<template>
    <div>
        <div v-for="item in list" :key="item.id" class="item">
            <img :src="item.src" alt="">
            <p>{{ item.name }}</p>
        </div>
    </div>
</template>

<script>
    export default {
        data(){
            return {
                list:[{id:"01",name:"时令水果",src:require("../../../public/image/1.png")},
                {id:"02",name:"新鲜蔬菜",src:require("../../../public/image/2.png")},
                {id:"03",name:"海鲜水产",src:require("../../../public/image/3.png")},
                {id:"04",name:"肉禽蛋品",src:require("../../../public/image/4.png")},
                {id:"05",name:"食品干货",src:require("../../../public/image/5.png")},
                {id:"06",name:"美妆个护",src:require("../../../public/image/6.png")},
                {id:"07",name:"母婴百货",src:require("../../../public/image/7.png")},
                {id:"08",name:"保健滋补",src:require("../../../public/image/8.png")},
                {id:"09",name:"中外名酒",src:require("../../../public/image/9.png")},
                {id:"10",name:"彩妆时装",src:require("../../../public/image/10.png")},
            ]
            }
        }
    }
</script>

<style lang="scss" scoped>
div{
    margin-top: 10px;
    width: 94%;
    height: 310px;
    margin-left: 3%;
    background-color: white;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 10px;
    .item{
        width: 15%;
        height: 30px;
    p{
        font-size: 14px;
    }
    img{
        width: 90px;
    }
}
}
</style>